<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  mounted() {
    // 页面跳转之前让窗口的高度为0 置顶
    this.$router.afterEach(() => {
      window.scrollTo(0, 0);
    }); 
  },
};
</script>
<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
}
img {
  display: block;
}
:root {
  --width: calc(100vw - 17px);
  --wrap: 1250px;
  --color-zdyblue: #2d8cf0;
}
</style>
